package com.kim.pong.spec

import com.kim.pong.producer.Producer
import org.apache.rocketmq.client.exception.MQClientException
import org.apache.rocketmq.client.producer.DefaultMQProducer
import org.junit.jupiter.api.BeforeEach
import org.powermock.core.PowerMockUtils
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.test.context.ContextConfiguration
import spock.lang.Specification

@SpringBootTest
@ContextConfiguration(classes = [Producer])
class ProducerSpec extends Specification {

    Producer producer = new Producer();
    def "should send two messages successfully"() {
        when:
        producer.sendMessage()

        then:
        true
    }
}